MongoInfo

data class MongoInfo(var mongoAddress: String = if (System.getenv("DB_CONNECTION_ADDRESS") == null) { "mongodb://localhost:27017" } else { System.getenv( "DB_CONNECTION_ADDRESS", ) }, val databaseName: String = "Warehouse", val collectionName: String = "Ingredient")

Data class that contains the information necessary to connect to the database

Parameters

mongoAddress

port to connect

databaseName

name of the database

collectionName

name of the collection

Constructors

Link copied to clipboard
constructor(mongoAddress: String = if (System.getenv("DB_CONNECTION_ADDRESS") == null) { "mongodb://localhost:27017" } else { System.getenv( "DB_CONNECTION_ADDRESS", ) }, databaseName: String = "Warehouse", collectionName: String = "Ingredient")

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard